{extend name="base"}
{block name="title"}后台管理-用户管理{/block}
{block name="main-title"}userlist{/block}
{block name="main"}
<div class="widget-header">
  <i class="icon-group"></i>
  <h5>用户</h5>
  <div class="widget-buttons">
    <a href="#" data-title="Add Employee" data-toggle="modal" data-target="#example_modal"><i class="icon-plus"></i></a>
    <a href="#" data-title="Collapse" data-collapsed="false" class="collapse"><i class="icon-chevron-up"></i></a>
  </div>
  <div id="example_modal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-header">
      <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
      <h3 id="myModalLabel">添加用户</h3>
    </div>
    <form class="form-horizontal" action="{:url('doaddrole')}">
      <div class="modal-body">

        <div class="control-group">
          <label class="control-label">role</label>
          <div class="controls">
            <input class="span7" type="text" name="rolename">
          </div>
        </div>
        

       
      </div> 
      <div class="modal-footer">
        <button class="btn" data-dismiss="modal" aria-hidden="true">取消</button>
        <button class="btn btn-primary">添加</button>
      </div>
    </form> 
  </div>
</div>
<div class="widget-body">
  <table id="users" class="table table-striped table-bordered dataTable">
    <thead>
      <tr>
        <!-- <th>区域</th> -->
        <!-- <th>保修地点</th> -->
        <th>rolename</th>
        
      </tr>
    </thead>
    <tbody>
      {volist name="rolesa" id="vo"}
      <tr>
         
          
          <td>{$vo.rolename}</td>
       
          
      </tr>
      {/volist}
    </tbody>
  </table>
</div> <!-- /widget-body -->
{/block}